<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>蓝票明细列表</title>
</head>
<body>
<div th:fragment="tableBlock" class="widget-content nopaddingLR module-block">

    <table id="datatable" class="table table-striped data-table table-bordered" width="100%">
        <thead>
        <tr>
            <th class="table-head" id="goodsLineNo">明细行号</th>
            <th class="table-head" id="exsysDetailId">外部系统明细id</th>
            <th class="table-head" id="invoiceTotalPriceTax">发票行性质</th>
            <th class="table-head" id="goodsCode">国税商品编码</th>
            <th class="table-head" id="goodsTaxItem">商品税目</th>
            <th class="table-head" id="goodsExtendCode">自行商品编码 </th>
            <th class="table-head" id="goodsName">商品名称</th>
            <th class="table-head" id="goodsSpecification">规格型号</th>
            <th class="table-head" id="goodsUnit">计量单位</th>
            <th class="table-head" id="goodsQuantity">商品数量</th>
            <th class="table-head" id="goodsPrice">商品单价</th>
            <th class="table-head" id="goodsTaxRate">税率</th>
            <th class="table-head" id="goodsTotalTax">税额</th>
            <th class="table-head" id="goodsTotalPrice">不含税金额(元)</th>
            <th class="table-head" id="goodsTotalTaxPrice">价税合计金额</th>
            <th class="table-head" id="goodsDiscountLineNo">折行对应行号</th>
            <th class="table-head" id="priceTaxMark">含税标志</th>

        </tr>
        </thead>

        <tbody>
        <tr  th:each="invoice : ${formBean.pInvoiceBlueDetails}">
            <td class="table-content" th:text="${invoice.goodsLineNo}"></td>
            <td class="table-content" th:text="${invoice.exsysDetailId}"></td>
            <td  class="table-content" th:switch="${invoice.goodsLineNature}">
                <span th:case="0">正常行</span>
                <span th:case="1">折扣行</span>
                <span th:case="2">被折扣行</span>
            </td>
            <td class="table-content" th:text="${invoice.goodsCode}"></td>
            <td class="table-content" th:text="${invoice.goodsTaxItem}"></td>
            <td class="table-content" th:text="${invoice.goodsExtendCode}"></td>
            <td class="table-content" th:text="${invoice.goodsName}"></td>
            <td class="table-content" th:text="${invoice.goodsSpecification}"></td>
            <td class="table-content" th:text="${invoice.goodsUnit}"></td>
            <td class="table-content" th:text="${invoice.goodsQuantity}"></td>
            <td class="table-content" th:text="${invoice.goodsPrice}/100"></td>
            <td class="table-content" th:text="${invoice.goodsTaxRate}"></td>
            <td class="table-content" th:text="${invoice.goodsTotalTax}"></td>
            <td class="table-content" th:text="${invoice.goodsTotalPrice}/100"></td>
            <td class="table-content" th:text="${invoice.goodsTotalTaxPrice}"></td>
            <td class="table-content" th:text="${invoice.goodsDiscountLineNo}"></td>
            <td  class="table-content" th:switch="${invoice.priceTaxMark}">
                <span th:case="0">不含税</span>
                <span th:case="1">含税</span>
            </td>
        </tr>

        </tbody>

    </table>
</div>

</body>
</html>